#include "linkstack.h"

int main(int argc, char const *argv[])
{
    /* code */
    //测试链式栈
    int i = 0;
    dataType array[] = {'a','n','i','h','c'};
    dataType x;
    linkstack * s = create_empty_linkstack();
    for (i = 0; i < sizeof(array); i++) {
        push_linkstack(s, array[i]);
    }
    printf(" pop data is : ");
    while(!is_empty_linkstack(s)) {
        printf(" %c \n ", pop_linkstack(s));
        
    }
    return 0;
}
